package com.motong.gongdan.vo.H5Vo.stock.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.motong.gongdan.vo.system.otherVo.CustomFieldVo;
import com.motong.gongdan.vo.resp.StockDetailResp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
@ApiModel("出/入库单列表数据")
public class StockDetailVo {

    @ApiModelProperty("出入库单id")
    private Integer stockId;

    @ApiModelProperty("出入库单编码")
    private String code;

    @ApiModelProperty("库存类")
    private String type;

    @ApiModelProperty("库存详细分类")
    private String typeOther;

    @ApiModelProperty("产品行数")
    private Integer productLineNum;

    @ApiModelProperty("出入库总数")
    private BigDecimal totalNum;

    @ApiModelProperty("出入库时间")
    private Date optTime;

    @ApiModelProperty("备注")
    private String comment;

    @ApiModelProperty(value = "自定义字段json",hidden = true)
    @JsonIgnore
    private String other;

    @ApiModelProperty("自定义字段")
    private List<CustomFieldVo> customFieldVos;

    @ApiModelProperty("创建人")
    private String createUserName;

    @ApiModelProperty("更新人")
    private String updateUserName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("库存明细")
    private List<StockDetailResp> detailList;

}
